package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author majinan
 */
@ApiModel(value = "com-sky-dto-UserPwdUpdateDto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPwdUpdateDto {


    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @NotBlank(message = "原密码不能为空")
    @ApiModelProperty(value = "原密码")
    private String originalPwd;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码")
    private String newPwd;

    @NotBlank(message = "确认密码不能为空")
    @ApiModelProperty(value = "确认密码")
    private String confirmPwd;
}